package com.training.java.corejava.Inheritance;

public class LaptopTest {

	public static void main(String[] args)
	{
		
		String color="Red";
		String memory="8Gb";
		
		Laptop laptopTest1= new Laptop();
		//Laptop laptopTest1= new Laptop("dell","process","3ghz");
		
		//Accessing superclass fields
		laptopTest1.setColor(color);
		laptopTest1.setCoolingFan(true);
	    laptopTest1.setMemory(memory);
		
	    //Accessing subclass methods
		laptopTest1.upgrade("add_Wifi");
		laptopTest1.upgrade("add_Bluetooth");
		laptopTest1.upgrade("change_battery");
		
		System.out.println("\nlaptop color is: " + laptopTest1.getColor());
		System.out.println("\ncooling fan: " + laptopTest1.isCoolingFan());
		System.out.println("\nmemory: " + laptopTest1.getMemory());
		System.out.println("\nbrand: "+ laptopTest1.getBrand() );
		System.out.println("\nmodel: " + laptopTest1.getModel() );
		System.out.println("\nprocessor: " +laptopTest1.getProcessor());
		
		//Accessing superclass methods
		laptopTest1.start();
		laptopTest1.stop();
		
		
	}

}
